package question1;

public class Test {
    public static void main(String[] args) {
        Manager manager = new Manager("张小强", "销售部", "M001","李小亮");
        SmallWorker smallWorker = new SmallWorker("李小亮", "销售部", "c001","张小强");
        System.out.println(manager.getDepartment()+"的："+manager.getName()+",员工编号："+manager.getID());
        System.out.println("他的职员是"+manager.getUnderling());
        System.out.println(smallWorker.getDepartment()+"的："+smallWorker.getName()+",员工编号："+smallWorker.getID());
        System.out.println("他的经理是"+smallWorker.getManager());
    }
}
